package edu.tsinghua.eea.powermanagement.gui;

import edu.tsinghua.eea.powermanagement.R;
import android.app.Dialog;
import android.content.Context;
import android.content.pm.LabeledIntent;
import android.os.Bundle;
import android.widget.TextView;

public class XmlLoadingDialog extends Dialog {

	public XmlLoadingDialog(Context context) {
		super(context);
	}

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.xml_loading_dialog);
	}
	
	public void setText(int id, String text){
		TextView tv = (TextView)findViewById(id);
		tv.setText(text);
	}
	
	public String getText(int id){
		TextView tv = (TextView)findViewById(id);
		return tv.getText().toString();
	}
}
